<template>
    <div id="si">
       <h3>{{infoObj.title}}</h3>
       <p id="s2"> 
         <span>发表时间：{{infoObj.app_time | binia}}</span>
          <span>点击{{infoObj.click}}次：</span>
          
       </p>
       <hr/>
    <div v-html="infoObj.content"></div>
    <comme :newid="this.id"></comme> 
    </div>
</template>
<script>
 import comme from "./comments/com.vue";


export default {
    data(){
      return{
           id:this.$route.params.id,
           infoObj:{}

      };
    },
     created(){
   this.geiNsi()
    },
    methods:{
        geiNsi(){
            this.$http.get("api/getnew/"+this.id).then(rusi =>{
               
                if(rusi.body.status==0){
                     this.infoObj=rusi.body.message[0];
                }else{Toast('提起吃啥')

                }
            })
        }
    },
components:{
  comme
}


}
</script>
<style lang="scss" scoped>
  #si{
h3{
  text-align: center;
  font-size: 20px;
  line-height: 30px;
}
    #s2{
display:flex;
    justify-content: space-between;
    color:red;
 


}
}
</style>
